EssentialBlocks\blocks\TableOfContents B

Total Complexity 86
Dependencies 2
Dependents 0
Total lines 422
Lines of code 280
Logical lines of code 180
Comment lines 74
Methods 10
Properties 5

Methods 10

Method Rating Maintainability Complexity Lines of code
render_callback()
D
27
42 113
getHeadersFromContent()
A
46 10 39
getHeadingsFromHeadingElements()
A
47 10 36
generate_toc()
A
49 9 30
get_editor_type()
S
60 8 12
parseTocSlug()
S
58 2 16
allowed_html()
S
57 1 19
areAllFalse()
S
72 2 5
get_name()
S
82 1 3
register_scripts()
S
70 1 7